using System;
using System.Collections.Generic;
using System.Text;

namespace Survive.Library
{
    public class Space
    {
        int spaceId;
        List<Space> adjacentTo = new List<Space>();

        internal Space(int spaceId)
        {
            this.spaceId = spaceId;
        }

        public int SpaceId
        {
            get { return spaceId; }
        }

        internal void AddAdjacentSpace(Space space)
        {
            if (!adjacentTo.Contains(space))
                adjacentTo.Add(space);
        }
    }
}
